db = db.getSiblingDB('dbadmin'); // 切换到要创建的数据库

db.createUser({
  user: 'dbadmin',
  pwd: '*m@mBVzr8&Et',
  roles: ["readWrite", "dbAdmin"]
});